package com.briup.ch10;

/**
 * @Author briup-adam
 * @Date 2023/10/26 下午4:39
 * @Description
 **/

public class ThreadTest {
    public static void main(String[] args) {
        Thread t=new Thread(){
            @Override
            public void run() {
                System.out.println(Thread.currentThread());
                System.out.println(Thread.currentThread().getName());
            }
        };
        t.setName("小白兔");
        t.start();
        t.run();
    }
}
